﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%
    if (Request.IsAuthenticated) {
%>
       <%-- 欢迎您 <b><%= Html.Encode(Page.User.Identity.Name) %></b>!--%>
        <%=Html.ActionLink( Page.User.Identity.Name, "ViewUser", "User", new { User = Page.User.Identity.Name}, null)%>
        
        [ <%= Html.ActionLink("退出", "LogOff", "Home") %> ]
<%
    }
    else {
%> 
        [ <%= Html.ActionLink("登录", "Login", "Home") %> ]
<%
    }
%>
